<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui">

	<ui:composition template="/faces/site/xhtml/templates/template.xhtml">
		<ui:define name="body-imobiliaria">		
			<table id="complex-main-body" cellpadding="0" cellspacing="0">
				<tbody>
					<tr>
						<td id="menu-body" valign="top">
							<ui:insert name="menu-left-imobiliaria">
								<ui:include src="/faces/site/xhtml/templates/menu-left.xhtml" />
							</ui:insert>							
						</td>						
						<td id="content-body">							
							<p:outputPanel id="contato-panel">
								<table cellpadding="0" cellspacing="0" width="60%" align="center">
									<tr>
										<td><p:spacer height="20px"/></td>
									</tr>
									<tr>
										<td>
											<p:panel style="height:340px">											 
												<h:form id="form-contato">
													<table cellpadding="0" cellspacing="0" width="100%">
														<tr>
															<td align="center" colspan="2"><b><h:outputText value="#{msg['body.header.menu.contato']}"/></b></td>
														</tr>
														<tr><td colspan="2"><p:spacer height="10px"/></td></tr>
														<tr><td colspan="2" style="height:55px;"><p:messages id="contato-messages" showDetail="true" autoUpdate="true"/></td></tr>
														<tr><td colspan="2"><p:spacer height="10px"/></td></tr>
										           		<tr>
										           			<td class="form-column-label"><h:outputText value="#{msg['search.anuncio.contato.nome']}" />:</td>
										           			<td class="form-column-value">
										           				<p:inputText id="nomeMensagem" value="#{searchImovelController.mensagem.nome}" styleClass="inputText" />
										           			</td>
										           		</tr>
										           		<tr>
										           			<td class="form-column-label"><h:outputText value="#{msg['search.anuncio.contato.email']}" />:</td>
										           			<td class="form-column-value">
										           				<p:inputText id="emailMensagem" value="#{searchImovelController.mensagem.email}" styleClass="inputText" />	
										           			</td>
										           		</tr>
										           		<tr>
										           			<td class="form-column-label"><h:outputText value="#{msg['search.anuncio.contato.descricao']}" />:</td>
										           			<td class="form-column-value">
										           				<p:inputTextarea id="descricaoMensagem" value="#{searchImovelController.mensagem.descricao}" styleClass="inputTextArea" maxHeight="120" maxlength="255"/>
										           			</td>
										           		</tr>
										           		<tr>
										           			<td class="form-column-buttons" colspan="2">
										           				<p:commandButton value="#{msg['search.anuncio.contato.send']}" ajax="true" image="send-button" 
										           					actionListener="#{searchImovelController.sendDirectMessage}" update="contato-panel">
										           					<f:param name="idCliente" value="#{searchImovelController.cliente.id}" />
										           				</p:commandButton>
										           			</td>
										           		</tr>								          	
													</table>
												</h:form>																			
											</p:panel>  										
										</td>
									</tr>
								</table>																
							</p:outputPanel>
						</td>
					</tr>
				</tbody>	
			</table>		
		</ui:define>
	</ui:composition>
</html>